import request from '@/utils/request'

export function getUserList() {
  return request({
    url: 'admin/user',
    method: 'get'
  })
}

export function addUser(data) {
  return request({
    url: 'admin/user',
    method: 'post',
    data
  })
}

export function editUser(data) {
  return request({
    url: 'admin/user',
    method: 'put',
    data
  })
}

export function deleteUsers(data) {
  return request({
    url: 'admin/user',
    method: 'delete',
    data
  })
}